package com.huffman.smart_picture.domain.request.user;

import com.huffman.smart_picture.domain.entity.User;
import lombok.Data;

/**
 * @author DengLin
 * @title 添加用户请求体
 * @date 2024/07/08
 */
@Data
public class UserInsertRequest {
    private String username;
    private String password = "123456";


    public static User convert(UserInsertRequest userInsertRequest) {
        User user = new User();
        user.setUsername(userInsertRequest.getUsername());
        user.setPassword(userInsertRequest.getPassword());
        return user;
    }
}
